package sanrenxing.dayEnd.backRepertoryTotal.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * 功能:TA交易结算
 * 编写者：
 * 日期：2021
 * 版本：1.0
 */
public class TATrabsactionSettlement implements Serializable {
    //基金编号
    private String fundId;
    //TA交易编号
    private int dataId;
    //现金账户Id
    private int caId;
    //单价
    private double price;
    //数量
    private Long numbers;
    //总金额
    private double sumMoney;
    //实际金额
    private double actMoney;
    //交易日期
    private Date dates;
    //结算日期
    private Date endDate;
    //类型
    private int tranType;
    //状态
    private int tranStatus;

    public TATrabsactionSettlement() {
    }

    public TATrabsactionSettlement(String fundId, int dataId, int caId, double price, Long numbers, double sumMoney, double actMoney, Date dates, Date endDate, int tranType, int tranStatus) {
        this.fundId = fundId;
        this.dataId = dataId;
        this.caId = caId;
        this.price = price;
        this.numbers = numbers;
        this.sumMoney = sumMoney;
        this.actMoney=actMoney;
        this.dates = dates;
        this.endDate = endDate;
        this.tranType = tranType;
        this.tranStatus = tranStatus;
    }

    public String getFundId() {
        return fundId;
    }

    public void setFundId(String fundId) {
        this.fundId = fundId;
    }

    public int getDataId() {
        return dataId;
    }

    public void setDataId(int dataId) {
        this.dataId = dataId;
    }

    public int getCaId() {
        return caId;
    }

    public void setCaId(int caId) {
        this.caId = caId;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Long getNumbers() {
        return numbers;
    }

    public void setNumbers(Long numbers) {
        this.numbers = numbers;
    }

    public double getSumMoney() {
        return sumMoney;
    }

    public void setSumMoney(double sumMoney) {
        this.sumMoney = sumMoney;
    }

    public double getActMoney() {
        return actMoney;
    }

    public void setActMoney(double actMoney) {
        this.actMoney = actMoney;
    }

    public Date getDates() {
        return dates;
    }

    public void setDates(Date dates) {
        this.dates = dates;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public int getTranType() {
        return tranType;
    }

    public void setTranType(int tranType) {
        if(tranType==0) {
            this.tranType = 0;
        }else
            this.tranType = tranType;
    }

    public int getTranStatus() {
        return tranStatus;
    }

    public void setTranStatus(int tranStatus) {
        if(tranStatus==0){
            this.tranStatus=0;
        }else
        this.tranStatus = tranStatus;
    }
}
